#include <iostream>
using std::cout;
using std::endl;

void print()
{
    cout << endl;
    cout << "出口一" << endl;
}

/* void print(double x) */
/* { */
/*     cout << x << endl; */
/*     cout << "出口二" << endl; */
/* } */

/* template <class T> */
/* void print(T x) */
/* { */
/*     cout << x << endl; */
/*     cout << "出口三" << endl; */
/* } */

template <class T ,class ...Args>
void print(T x, Args ...args)
{
    cout << x << " ";
    print(args...);//递归调用
}

void test0(){
    //cout << 1 << " "
    //print('c',"hello",true,8.9)
    //  cout << 'c' << " "
    //  print("hello",true,8.9)
    //      cout << "hello" << " "
    //      print(true,8.9)
    //          cout << true << " "
    //          print(8.9)
    //              cout << 8.9 << " "
    //              print()
    print(1,'c',"hello",true,8.9,7,"world");
}

int main(void){
    test0();
    return 0;
}
